<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<script src="../js/jquery/jquery-1.8.2.js"></script>
</head>
<script>
$(function(){
	$("#tt").val("30");
	$("#btnStart").click(function(){
	$("#console").html("working...");
	doUp();
});

});
function doUp()
{
   
	$("#console").html("working...");
  $.get("do.php",function(d){
      $("#console").html("finish and waiting to next");
	  var t = parseInt($("#tt").val())*1000;
      setTimeout("doUp()",t);
  });
}
</script>
<body>
<input id="tt" type="text" value="30"/>
<button id="btnStart">start</button>
<div id="console"></div>
</body>
</html>
